package com.secsys.model;

 import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TbBbsPost entity. @author MyEclipse Persistence Tools
 */

public class TbBbsPost implements java.io.Serializable {

	// Fields

	private String content;
	private Integer id;
	 
	private Boolean isDigest;
	private Boolean isTop;
	private String keyWord;
	private Integer lastReplyNo;
	private Date lastReplyTime;
	private String options;
	private String postType;
	private Date publishTime;
	private Integer replyNum;
	private String statue;
	private TbBbsModule tbBbsModule;
	private Set tbBbsReplies = new HashSet(0);
	private TbSysUser tbSysUser;
	private String title;
	 
	private Integer views;

	// Constructors

	/** default constructor */
	public TbBbsPost() {
	}

	public String getContent() {
		return this.content;
	}

	/** full constructor */
//	public TbBbsPost(TbSysUser tbSysUser, Timestamp dateandtime,
//			String postType, String title, String keyWord, String content,
//			Integer views, Integer replyNum, Integer lastReplyNo,
//			Timestamp lastReplyTime, Boolean isTop, Boolean isDigest,
//			String options, String statue, String localModule, Set tbBbsReplies) {
//		this.tbSysUser = tbSysUser;
//		this.dateandtime = dateandtime;
//		this.postType = postType;
//		this.title = title;
//		this.keyWord = keyWord;
//		this.content = content;
//		this.views = views;
//		this.replyNum = replyNum;
//		this.lastReplyNo = lastReplyNo;
//		this.lastReplyTime = lastReplyTime;
//		this.isTop = isTop;
//		this.isDigest = isDigest;
//		this.options = options;
//		this.statue = statue;
//		this.localModule = localModule;
//		this.tbBbsReplies = tbBbsReplies;
//	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public Boolean getIsDigest() {
		return this.isDigest;
	}

	public Boolean getIsTop() {
		return this.isTop;
	}

	/** minimal constructor */
//	public TbBbsPost(TbSysUser tbSysUser, Timestamp dateandtime,
//			String postType, String title, String keyWord, String content,
//			String statue, String localModule) {
//		this.tbSysUser = tbSysUser;
//		this.dateandtime = dateandtime;
//		this.postType = postType;
//		this.title = title;
//		this.keyWord = keyWord;
//		this.content = content;
//		this.statue = statue;
//		this.localModule = localModule;
//	}

	public String getKeyWord() {
		return this.keyWord;
	}

	public Integer getLastReplyNo() {
		return this.lastReplyNo;
	}

//	public TbSysUser getTbSysUser() {
//		return this.tbSysUser;
//	}
//
//	public void setTbSysUser(TbSysUser tbSysUser) {
//		this.tbSysUser = tbSysUser;
//	}

	 

	public Date getLastReplyTime() {
		return lastReplyTime;
	}

	public String getOptions() {
		return this.options;
	}

	public String getPostType() {
		return this.postType;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public Integer getReplyNum() {
		return this.replyNum;
	}

	public String getStatue() {
		return this.statue;
	}

	public TbBbsModule getTbBbsModule() {
		return tbBbsModule;
	}

	public Set getTbBbsReplies() {
		return this.tbBbsReplies;
	}

	public TbSysUser getTbSysUser() {
		return tbSysUser;
	}

	public String getTitle() {
		return this.title;
	}

	public Integer getViews() {
		return this.views;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setIsDigest(Boolean isDigest) {
		this.isDigest = isDigest;
	}

 

	 

	public void setIsTop(Boolean isTop) {
		this.isTop = isTop;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public void setLastReplyNo(Integer lastReplyNo) {
		this.lastReplyNo = lastReplyNo;
	}

	public void setLastReplyTime(Date lastReplyTime) {
		this.lastReplyTime = lastReplyTime;
	}

	public void setOptions(String options) {
		this.options = options;
	}

	public void setPostType(String postType) {
		this.postType = postType;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public void setReplyNum(Integer replyNum) {
		this.replyNum = replyNum;
	}

	public void setStatue(String statue) {
		this.statue = statue;
	}

	public void setTbBbsModule(TbBbsModule tbBbsModule) {
		this.tbBbsModule = tbBbsModule;
	}

	public void setTbBbsReplies(Set tbBbsReplies) {
		this.tbBbsReplies = tbBbsReplies;
	}

	public void setTbSysUser(TbSysUser tbSysUser) {
		this.tbSysUser = tbSysUser;
	}

 
	public void setTitle(String title) {
		this.title = title;
	}

	public void setViews(Integer views) {
		this.views = views;
	}

}